#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xlwt


def xls(datas):
    print '开始保存xls文件'
    f = xlwt.Workbook(encoding='utf-8')
    sheet2 = f.add_sheet(u'sheet2', cell_overwrite_ok=True)  # 创建sheet2

    for row in range(1, len(datas) + 1):
        for col in range(0, 3):
            sheet2.write(row, col, u'%s' % datas[row - 1][col])

    f.save(r'Presentation.xlsx')
    print '文件保存成功'
